var shell={
	exec:function(cmd){
		var WshShell= new ActiveXObject("WScript.Shell");
		return WshShell.exec(cmd);
	},
	run:function(cmd){
		var WshShell= new ActiveXObject("WScript.Shell");
		return WshShell.Run(cmd,1,true);
	}
}
function alert(x)
{
	WScript.Echo(x);
}
function login()
{
	var errOutputFile=WScript.Arguments(1);
	var cmd='D:\\temp\\script\\p4Login.bat "'+WScript.Arguments(0).split('!').join('" "')+'" 1>output.txt 2>'+errOutputFile;
	var obj=shell.run(cmd);

}
login();